"Invalid Arguments" error when installing remote driver via Printui
I have a batch file to install Local IP printers on remote workstations. I use the following printui.dll command to install the driver .... RUNDLL32 PRINTUI.DLL,PrintUIEntry /ia /b 114_110578 /f E:\Xerox\X-GPD_PCL6_32_Driver\x2UNIVX.inf /r 114_10.140.229.43 /m "Xerox Global Print Driver PCL6" /c\\dmo-hp2530 /h "x86" The command works fine when installing a printer on a remote XP box. But it errors immediately with "Invalid Arguments" when I try to install a printer on a remote Windows 7 box. If I remove the /c argument and run it manually on a Windows 7 system it installs the drivers locally without issue. Is there a "new" argument (to go with the /c argument) needed if pushing out to a remote Windows 7 system??? Thanks .......
July 29th, 2010 10:36pm

Hi, Thanks for posting in Technet. The argument should work. I suspect that “File and Printer Sharing” is not enabled on the remote Windows 7 computer. Please check it. Also please be assure that you are running the command in command prompt with administrator If the issue occurs with the correct sharing configuration, I suggest you temporary disable the firewall on the remote Windows 7 computer and check the result again. Arthur Xie TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2010 12:03pm

Thanks for the feedback Arthur but ..... “File and Printer Sharing” is enabled on the remote Windows 7 computers. I was running the command from an Administrator command prompt. Turning the Firewall off made no difference. And like I said the "Invalid Arguments" error comes up immediately after hitting enter, it doesn't appear to even try to go out to the remote computer?
July 30th, 2010 4:06pm

Hi, Don’t know if it is just in your post or in your script. There may be a space between “/c” and “\dmo-hp2530”.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
August 3rd, 2010 5:39am

There's no space in my script or in the post, nor should there be according to the documentation. Plus, like I said ... the command works fine when pushing to an XP box. Tried putting a space in for fun - no change.
August 4th, 2010 4:36am

Are the computers in domain? What is the advanced sharing settings of the Windows 7 printer server? Have you disabled Password Protected Sharing? If so, please check related policy settings. 1. Open GPedit.msc. 2. Locate to Computer Configuration/Windows Settings/Security Settings/Local Policies/Security Options. 3. In the right pane, double-click on “Network access: Do not allow anonymous enumeration of SAM accounts”. By default it is enabled. Please disable it. How does it work now? If the issue still occurs, I suggest you download and install Netmon 3.4. From the Network Monitor you can see whether the computer communicate with the remote Windows 7 computer after this command runs. Microsoft Network Monitor 3.4 Using the New Microsoft Network Monitor (netmon) 3.3 with Network Experts Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information. Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
August 5th, 2010 11:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics